<?phpuse Illuminate\Database\Eloquent\Model;use Illuminate\Database\Capsule\Manager as DB;class tuikeModel extends Model{	protected $table 		= 'tuike';	public	  $primaryKey	= 'tuike_id';    protected function serializeDate($date)    {        return $date->format('Y-m-d H:i:s');    }    public function member()    {        return $this->belongsTo(memberModel::class, 'tuike_id', 'id');    }    public function tuike_last_log()    {        return $this->hasOne(tuikelogModel::class, 'tuike_id', 'tuike_id')->orderBy('id', 'desc');    }    public function tuike_log()    {        return $this->hasMany(tuikelogModel::class, 'tuike_id', 'tuike_id')->orderBy('id', 'desc');    }    public function tuike_level()    {        return $this->hasOne(tuikelevelModel::class, 'level', 'level');    }}